package com.offcn.dongyimaicommon.utils;

import java.util.List;

/**
 * 返回分页结果集
 */
public class PageRerult<T> {

    //总条数
    private long total;
    //分页结果集
    private List<T> rows;

    public PageRerult(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageRerult() {
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }
}
